package com.huadao.pda.data.http;

public class BaseLoginResponse<T> {
    private int code;
    private String msg;
    private boolean isOk;
    private T data;
    public int getCode() {
        return code;
    }
    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }
    public void setData(T data) {
        this.data = data;
    }

    public boolean isOk() {
        return isOk;
    }

    public void setOk(boolean ok) {
        isOk = ok;
    }

    public boolean isRequestSuccess(){
        if(code==0){
            return true;
        }else {
            return false;
        }
    }
}
